#!/bin/bash
for i in `cat /etc/passwd|cut -d: -f1,3`
do
    uid=`echo $i|cut -d: -f2`
    name=`echo $i|cut -d: -f1`
    [ $uid -eq 0 ] && echo $name >>/tmp/adminuser
    [ $uid -gt 0 ] && [ $uid -lt 500 ] || [ $uid -eq 65534 ] && echo $name >>/tmp/systemuser
    [ $uid -ge 500 ] && [ $uid -ne 65534 ] && echo $name >>/tmp/normaluser
done
